FROM php:7.3-fpm

RUN  apt-get update -y

RUN apt-get install -y git libzip-dev zip unzip libfreetype6-dev libjpeg62-turbo-dev

RUN docker-php-ext-install pdo_mysql bcmath gd zip

RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php composer-setup.php
RUN mv composer.phar /usr/local/bin/composer
RUN chmod +x /usr/local/bin/composer 

RUN composer config -g repo.packagist composer https://mirrors.aliyun.com/composer
